.header {
  position: fixed;
  z-index: 99;
  width: 100%;
  min-width: 1200px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
  background-color: #fff;

  .header-container {
    width: 100%;
    height: 60px;
    position: relative;

    .navbar-header {
      float: none;
      width: 1200px;
      height: 60px;
      margin: 0 auto;
      background: transparent;

      .logo {
        float: left;
        width: 156px;

        >h1 {
          margin: 0;
          padding: 5px 0;

          img {
            height: 50px;
            width: auto;
          }
        }
      }

      .navigation {
        float: left;
        font-size: 15px;
        margin-left: 40px;
        padding-right: 10px;
        width: 726px;
        height: 60px;

        >ul {
          list-style: none;

          >li {
            float: left;
            line-height: 60px;
            position: relative;

            .active-item-low {
              color: #222;
              text-decoration: none;
              display: block;
              padding: 1px 20px 0;
              max-width: 130px;
            }

            .active-item {
              color: #222;
              text-decoration: none;
              display: block;
              padding: 1px 17px 0;
              max-width: 110px;
              overflow: hidden;
            }

            >span {
              display: inline-block;
              width: 12px;
              height: 3px;
              background: #358cc2;
              position: absolute;
              left: 50%;
              margin-left: -6px;
              bottom: 6px;
              display: none;
            }

            .dropdown-menu {
              min-width: 154px;
              width: 154px;
              border: 0;
              box-shadow: none;
              padding: 10px 0;
              top: 78px;
              left: -35px;
              box-shadow: 0 0 3px #eee;

              &::before {
                content: '';
                display: block;
                width: 0;
                height: 0;
                position: absolute;
                top: -10px;
                left: 50%;
                margin-left: -10px;
                border-width: 0 10px 10px;
                border-style: solid;
                border-color: transparent transparent #fff;
              }

              >li {
                height: 46px;
                text-align: center;

                >a {
                  line-height: 46px;
                  font-size: 16px;
                  color: #555555;
                }
              }

              >li:hover {
                background: #f5f8fa;

                >a {
                  color: #222222;
                  background: #f5f8fa;

                }
              }
            }
          }

          >li.active {
            .active-item {
              color: #358cc3;
            }

            .active-item::after {
              content: ' ';
              position: absolute;
              bottom: 6px;
              left: 50%;
              width: 12px;
              height: 3px;
              background: #358cc2;
              margin-left: -6px;
            }
          }
        }
      }

      .attr-nav {
        float: right;
        margin-left: 13px;
        height: 60px;
        max-width: 265px;

        .search-header {
          float: left;
          line-height: 42px;
          padding: 10px 20px 10px 0;
          cursor: pointer;
          position: relative;

          i {
            color: #aaa;
            font-size: 18px;
          }

          .header-search-popup {
            display: none;
            position: absolute;
            width: 460px;
            height: 58px;
            top: 0;
            left: -480px;

            .input-group {
              width: 460px;
              margin: 0 auto;
              padding: 7px 0;

              .search-input {
                border: 0;
                background-color: #f8f8f8;
                box-shadow: none;
                height: 46px;
                line-height: 36px;
                border-radius: 20px;
                border-top-right-radius: 0;
                border-bottom-right-radius: 0;
                padding-left: 38px;
              }

              .search-icon {
                left: 5px;
                top: 15px;

                .icon {
                  font-size: 16px;
                }
              }

              .input-group-btn {
                button {
                  border: 0px;
                  padding: 13px 25px;
                  border-radius: 20px;
                  border-top-left-radius: 0;
                  border-bottom-left-radius: 0;

                  &:focus {
                    outline: 0;
                  }
                }
              }
            }
          }
        }

        .information {
          float: left;
          position: relative;
          padding: 10px 20px 10px 0;

          .information-quantity {
            display: inline-block;
            width: 36px;
            height: 16px;
            color: #fff;
            background: #ed5046;
            font-size: 14px;
            line-height: 16px;
            text-align: center;
            border-radius: 8px;
            position: absolute;
            top: 5px;
            right: 14px;
          }

          .information-icon {
            display: block;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            text-align: center;
            line-height: 40px;

            .iconfont {
              color: #aaa;
              font-size: 20px;
            }
          }
        }

        .user-info {
          position: relative;
          height: 60px;
          float: left;

          >a {
            display: block;
            color: #222;
            font-size: 15px;
            text-decoration: none;
            padding: 10px 0;

            &:hover {
              text-decoration: none;
            }

            >img {
              display: block;
              float: left;
              width: 40px;
              height: 40px;
              margin-right: 10px;
            }

            .nickname {
              margin-left: 40px;
              line-height: 40px;
              max-width: 118px;
              display: block;
            }
          }

          .dropdown-menu {
            min-width: 154px;
            width: 154px;
            border: 0;
            box-shadow: none;
            padding: 10px 0;
            top: 78px;
            box-shadow: 0 0 3px #eee;

            &::before {
              content: '';
              display: block;
              width: 0;
              height: 0;
              position: absolute;
              top: -10px;
              left: 50%;
              margin-left: -10px;
              border-width: 0 10px 10px;
              border-style: solid;
              border-color: transparent transparent #fff;
            }

            >li {
              height: 46px;
              text-align: center;

              >a {
                line-height: 46px;
                font-size: 16px;
                color: #555555;
              }
            }

            >li:hover {
              background: #f5f8fa;

              >a {
                color: #222222;
                background: #f5f8fa;

              }
            }
          }
        }

        ul.no-login {
          list-style: none;
          width: 125px;

          .login {
            float: left;
            font-size: 15px;
            line-height: 60px;

            &::after {
              content: '|';
              margin: 0 10px 0 6px;
              color: #c7cacf;
            }
          }

          .registration {
            float: left;
            font-size: 15px;
            line-height: 60px;

            >a {
              color: #222;

              &:hover {
                text-decoration: none;
              }
            }
          }
        }

      }
    }
  }
}

.header.white {
  background-color: #fff !important;
  transition: background 0.5s;
  -moz-transition: background 0.5s;
  /* Firefox 4 */
  -webkit-transition: background 0.5s;
  /* Safari 和 Chrome */
  -o-transition: background 0.5s;

  /* Opera */
  .header-container .navbar-header {
    .navigation {

      >ul {
        li {
          .active-item {
            color: #222;
          }
        }
      }
    }

    .attr-nav {

      .dropdown,
      .logo {
        >a {
          color: #222;
        }
      }

      .user-info {
        >a {
          color: #222 !important;
        }
      }

      .login {
        >a {
          color: #000;
        }
      }

      .registration {
        >a {
          color: #000;
        }
      }
    }
  }
}

.header.transparent {
  background: rgba(0, 0, 0, 0.0) !important;
  transition: background 0.5s;
  -moz-transition: background 0.5s;
  /* Firefox 4 */
  -webkit-transition: background 0.5s;
  /* Safari 和 Chrome */
  -o-transition: background 0.5s;

  /* Opera */
  .header-container .navbar-header {
    .navigation {

      >ul {
        li {
          .active-item,.active-item-low {
            color: #fff;
          }

          .dropdown-menu {
            .active-item,.active-item-low {
              color: #000;
            }
          }
        }
      }
    }

    .attr-nav {

      .dropdown,
      .logo {
        >a {
          color: #fff;
        }
      }

      .user-info {
        >a {
          color: #fff !important;
        }
      }

      .login {
        >a {
          color: #fff;
        }
      }

      .registration {
        >a {
          color: #fff !important;
        }
      }
    }
  }
}